<template>
  <div class="veri_wrap">
      <canvas id="mycanvas" ></canvas>
  </div>
</template>

<script>
export default {
  name: 'JsxyVeri',

  data() {
    return {
      
    };
  },

  mounted() {
    this.draw("BCX7")
  },

  methods: {
    draw(str){ //绘制验证码
        // 获取canvas的dom
        let mycanvas=document.getElementById("mycanvas");
        // 获取操作实例的
       let ctx=mycanvas.getConext("2d");

       
    }
  },
};
</script>
<style lang="less">
  #mycanvas{
    width:200px;
    height:200px;
    background:skyblue;
  }
</style>